package www.lagou.entity;

import java.io.Serializable;

/**
 *  id INT(11)  PRIMARY KEY AUTO_INCREMENT,
 *  username VARCHAR(100) , -- 用户姓名
 *  card VARCHAR(100) ,  -- 卡号
 *  balance DOUBLE -- 当前余额
 */

public class Account {

    private int aid;    //ID
    private String username;    //用户姓名
    private String card;    //卡号
    private double balance; //当前余额

    @Override
    public String toString() {
        return "Account{" +
                "aid=" + aid +
                ", username='" + username + '\'' +
                ", card='" + card + '\'' +
                ", balance=" + balance +
                '}';
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
}
